# 写入一行信息到文件readme1.txt
# 1. 打开文件
file = "test_file/readme1.txt"
with open(file, mode="w", encoding="utf-8") as f:
    # 2.操作文件:写入
    f.write("白日依山尽")

# 3.关闭文件(自动关闭)
